package com.event;

import java.lang.reflect.InvocationTargetException;

/**
 * @author: LCG
 * @date: 2022-04-16 16:41:06
 * @description:
 **/
public class MyEventPublisher {

    public static void main(String[] args) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {


        MyEventSource myEventSource=new MyEventSource();
        myEventSource.addListener(new MyJavaEventListener<MyJavaEvent>());
        myEventSource.setUserName("张三");


    }

}
